package com.trtan.hr.dao;

import com.trtan.hr.pojo.Icon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface IconDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Icon record);

    int insertSelective(Icon record);

    Icon selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Icon record);

    int updateByPrimaryKey(Icon record);

    int truncateTable();

    List<String> getAllIcons(@Param("page") Integer page, @Param("size") Integer size);

    long getTotal();
}